var http = require('http');
var fs = require('fs');
var path = require('path');
http.createServer((req,res)=>{
    var filePath = path.join(__dirname,'./data.txt');
    var readable = fs.createReadStream(filePath);
    readable.pipe(res);
}).listen(8081);